#+_+ coding:utf-8 +_+

from storage import redis_proxy

class UIDTicketPoll(object):
    @staticmethod
    def Update(uid,ticket):
        redis_proxy.UpdateIDTicket(uid,ticket)

class UID(object):
    @staticmethod
    def Genrate():
        id = redis_proxy.GenerateID()
        return id

    @staticmethod
    def GetTicket(uid):
        ticket = redis_proxy.GetTicket(uid)
        return ticket

